package com.yp.lession.redisqf211.entity.vo;


import com.yp.lession.redisqf211.entity.Emp;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: COS
 * @time: 2022/3/25 9:48
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmpVo extends Emp {

    private String dname;

    @Override
    public String toString() {
        return "EmpVo{" +
                "dname='" + dname + '\'' +
                "emp='" + super.toString() + '\'' +
                '}';
    }

    public EmpVo(Integer eno, String ename, String esex, Double salary, String pwd, Date borndate, Integer dno, String dname) {
        //super(eno, ename, esex, salary, pwd, borndate, dno);
        this.dname = dname;
    }

}
